import Vue from 'vue'
import App from './App.vue'
import router from './router/'
import store from './store/'
import ElementUI from 'element-ui'
import Editor from '@tinymce/tinymce-vue';
import 'element-ui/lib/theme-chalk/index.css'
import './registerServiceWorker'
import './plugins/axios'
import GlobalHeader from './components/GlobalHeader'
import GlobalFooter from './components/GlobalFooter'
import protoCookie from './common/protoCookie'

// require('@/mock')

Vue.config.productionTip = false

Vue.component('global-header', GlobalHeader)
Vue.component('global-footer', GlobalFooter)
Vue.component('editor', Editor)

Vue.use(ElementUI)
Vue.use(protoCookie)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
